/*
 * @Description: 
 * @Author: changqing
 * @Date: 2021-05-30 23:46:39
 * @LastEditTime: 2021-05-30 23:46:59
 * @LastEditors: changqing
 * @Usage: 
 */
import crypto from 'crypto'
import { userSecret } from '../config/auth'

// md5加密
export const createMd5 = (content: any) => {
  const md5 = crypto.createHash('md5')
  return md5.update(`${content}_${userSecret}`).digest('hex')
}
